package com.tanjun.thirdservice.web.service.wx.request;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotNull;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxCodeToUserRequest {
    /**
     * 小程序APPId
     */

    private String appid;
    /**
     * 小程序appSecret
     */
    private String secret;

    /**
     * 小程序登录获取到的code
     */
    @NotNull
    @JSONField(name = "js_code")
    private String jsCode;

    @JSONField(name = "grant_type")
    private String grantType = "authorization_code";
}
